/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package view.user;

import java.util.List;
import javax.swing.ListModel;
import javax.swing.event.ListDataListener;

/**
 *
 * @author CUNEYT
 */
public class ACIListModel implements ListModel {

    private List collection;

    public ACIListModel(List coll) {
        collection = coll;
    }

    public List getCollection() {
        return collection;
    }

    public void setCollection(List collection) {
        this.collection = collection;
    }

    public int getSize() {
        return (getCollection() != null ? getCollection().size() : 0);
    }

    public Object getElementAt(int index) {
        return getCollection().get(index);
    }

    public void addListDataListener(ListDataListener l) {
    }

    public void removeListDataListener(ListDataListener l) {
    }
}
